<!DOCTYPE html>
<html>
<head>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/jsp/common/mytags.jsp"%>
<title>调查报告</title>
<!-- 引用组件 -->
<t:base type="autocomplete,idtabs,easyui,dataTables,my97,lhgdialog,ueditor"></t:base>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- 模块js文件 -->
<script type="text/javascript" src="static_resources/javascript/model/sys_set/loan/audit_loan_add.1.0.js"></script>
<!-- <script type="text/javascript" src="static_resources/javascript/model/sys_set/loan/inspect_loan_change.js"></script> -->
</head>

<body>

	<input type="hidden" id="loanId" value="${param.loanId}" />
	<input type="hidden" id="clientId" value="${param.clientId}" />

	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="javascript:void(0)">首页</a></li>
			<li><a href="javascript:void(0)">贷款管理</a></li>
			<li><a href="javascript:void(0)">贷款审批</a></li>
			<li><a href="javascript:void(0)">填写调查</span></a></li>
			
		</ul>
	</div>
	
	<div class="formbody">
	<div id="usual1" class="usual">

		<div class="itab" id="itab">
			<ul>
				<li><a href="#tab1" class="selected">贷款基本信息</a></li>
				<li><a href="#tab2">审核信息</a></li>
				<li><a href="#tab3">信用信息</a></li>
				<li><a href="#tab4">社保信息</a></li>
				<li><a href="#tab5">电话调查</a></li>
				<li><a href="#tab6">转考察</a></li>
				<li><a href="#tab7">审核附件</a></li>
				<li><a href="#tab8">提交审核</a></li>
			</ul>
		</div>

		<div id="tab1" class="tabson">
			<div class="formbody">
				<div class="formtitle"><span>贷款基本信息</span></div>
				<form id="" name="">
				    <ul class="forminfo">
				    	<li>
				    		<table class="newtablelist" id="">
						        <tbody>
							        <tr>
								        <td class="newtd">贷款申请号</td>
								        <td colspan="5"><span name="loanCode"></span>&nbsp;</td>
							        </tr>
							        <tr>
								        <td class="newtd">贷款人</td>
								        <td><span name="loanBorrower"></span>&nbsp;</td>
								        <td class="newtd">身份证号</td>
								        <td><span name="clientCardId"></span>&nbsp;</td>
								        <td class="newtd">申请日期</td>
								        <td><span name="loanApplyDate@[yyyy-MM-dd]"></span>&nbsp;</td>
							        </tr>
							        <tr>
								        <td class="newtd">来源渠道</td>
								        <td><span name="loanSource@Loan_Source_Code"></span>&nbsp;</td>
								        <td class="newtd">贷款类型</td>
								        <td><span name="loanType@Loan_Type_Code"></span>&nbsp;</td>
								        <td class="newtd">贷款产品</td>
								        <td><span name="loanProduct@Loan_Product_Code"></span>&nbsp;</td>
							        </tr>
							        <tr>
								        <td class="newtd">业务性质</td>
								        <td><span name="loanNatureBusiness@Loan_Nature_Business_Code"></span>&nbsp;</td>
								        <td class="newtd">客户性质</td>
								        <td><span name="loanNatureClilent@Loan_Nature_Clilent_Code"></span>&nbsp;</td>
								        <td class="newtd">资金性质</td>
								        <td><span name="loanNatureFund@Loan_Nature_Fund_Code"></span>&nbsp;</td>
							        </tr>
							        <tr>
								        <td class="newtd">贷款用途</td>
								        <td><span name="loanPurpose@Loan_Purpose_Code"></span>&nbsp;</td>
								        <td class="newtd">申请额度（元）</td>
								        <td><span name="loanLimitApply"></span>&nbsp;</td>
								        <td class="newtd">贷款期限（月）</td>
								        <td><span name="loanDeadlineApply"></span>&nbsp;</td>
							        </tr>
							        <tr>
								        <td class="newtd">月利率（%）</td>
								        <td><span name="loanRateInterest"></span>&nbsp;</td>
								        <td class="newtd">管理费率（%）</td>
								        <td><span name="loanRateManage"></span>&nbsp;</td>
								        <td class="newtd">手续费率（%）</td>
								        <td><span name="loanRateHandling"></span>&nbsp;</td>
							        </tr>
							        <tr>
								        <td class="newtd">还款方式</td>
								        <td><span name="loanRepayType@Loan_Repay_Type_Code"></span>&nbsp;</td>
								        <td class="newtd">贷款对象</td>
								        <td><span name="loanObject@Loan_Object_Code"></span>&nbsp;</td>
								        <td class="newtd">项目来源人</td>
								        <td><span name="loanSourceMan"></span>&nbsp;</td>
							        </tr>
							  	</tbody>
							</table>
				    	</li>
				    	<li><input name="" type="button"  onclick="history.go(-1);" class="scbtn" value="返回"/></li>
				    </ul>
			    </form>
			</div>
		</div>
		<div id="tab2" class="tabson">
			<div class="formbody">
				<div class="formtitle"><span>审核信息</span></div>
				<div id="usual1" class="usual"> 
				<form id="auditForm" name="auditForm" enctype="multipart/form-data" method="post">
					<input type="hidden" name="id" id="auditId" value="" />
					<input type="hidden" name="loanId" value="${param.loanId}" />
					<ul class="forminfo">
						<li>
							<label>个人信息<b></b></label><br/><br/><textarea style="width: 700px;height:180px;" name="auditBase"   id="auditBase"  ></textarea>
						</li>
						<li>
							<label>工作收入信息<b></b></label><br/><br/><textarea  style="width: 700px;height:180px;" name="auditWork"  id="auditWork"   ></textarea>
						</li>
						<li>
							<label>公司信息<b></b></label><br/><br/><textarea style="width: 700px;height:180px;" name="auditCompany"   id="auditCompany"  ></textarea>
						</li>
						<li>
							<label>住址信息<b></b></label><br/><br/><textarea style="width: 700px;height:180px;" name="auditHouse"   id="auditHouse"   ></textarea>
						</li>
						<li>
							<label>信用信息<b></b></label><br/><br/><textarea style="width: 700px;height:180px;" name="auditCredit"   id="auditCredit"  ></textarea>
						</li>
						<li>
							<label>保全措施<b></b></label><br/><br/><textarea  style="width: 700px;height:180px;" name="auditSafeMeasure"  id="auditSafeMeasure"   ></textarea>
						</li>
						<li>
							<label>其它信息<b></b></label><br/><br/><textarea style="width: 700px;height:180px;" name="auditOther"   id="auditOther"     ></textarea>
						</li>
						<li>
							<label>&nbsp;</label><input type="submit" class="scbtn" value="保存"/>
						</li>
					</ul>
				</form>
				</div>
			</div>
		</div>
		<div id="tab3" class="tabson">
			<div class="formbody">
				<div class="formtitle"><span>信用调查列表</span></div>
				<table cellpadding="0" cellspacing="0" border="0" class="tablelist" id="creditTable" width="100%"></table>
			
				<!-- tab按钮 -->
				<div class="tools">
					<div class="xline"></div>
						<ul class="toolbar">
							<li class="_class_btn_add" onclick="cleanCreditForm();"><span></span><img src="<%=basePath %>static_resources/images/t01.png" />添加信用调查</li>
						</ul>
					<div class="xline1"></div>
				</div>
				
				
				<div class="formtitle"><span>新增/编辑信用调查</span></div>
				<form id="creditForm" name="creditForm" enctype="multipart/form-data" method="post">
					<input type="hidden" name="id" id="creditId" value="" />
					<input type="hidden" name="loanId" value="${param.loanId}" />
					<ul class="forminfo">
						<li>
							<kl class="kl_three">
						    	<label>贷款方式<b></b></label>
						    	<!-- Loan_Credit_Type_Code -->
						    	<select name="loanType" id="loanType" class="easyui-validatebox">
					    		</select>
						    </kl>
							<kl class="kl_second">
								<label>放款方<b></b></label>
						    	<input name="loanAccount" type="text" class="newinput190 easyui-validatebox"/>  
							</kl>
						</li>
						
						<li>
							<kl class="kl_three">
								<label>贷款总额<b></b></label>
						    	<input name="loanAmount" type="text" class="newinput120 easyui-validatebox"/>（元）  
							</kl>
							<kl class="kl_second">
								<label>余额<b></b></label>
						    	<input name="loanBalance" type="text" class="newinput120 easyui-validatebox"/>（元）  
							</kl>
						</li>
						<li>
							<kl class="kl_three">
								<label>贷款期限<b></b></label>
						    	<input name="loanDeadline" type="text" class="newinput120 easyui-validatebox"/>（月）  
							</kl>
							<kl class="kl_second">
								<label>月供款额<b></b></label>
						    	<input name="loanPayMonth" type="text" class="newinput120 easyui-validatebox"/>（元）  
							</kl>
						</li>
						
						<li>
					      	<kl class="kl_three">
						   		<label>放款日期<b></b></label>
						    	<input name="loanStartDate" type="text" class="newinput190 easyui-validatebox Wdate" onClick="WdatePicker()" />  
						    </kl>
						    <kl class="kl_second">
					    	  	<label>到期日期<b></b></label>
						      	<input name="loanEndDate" type="text" class="newinput190 easyui-validatebox Wdate" onClick="WdatePicker()" /> 
						    </kl>
			   			</li>
						<li>
							<kl class="kl_three">
						    	<label>信用贷款状态<b></b></label>
						    	<!-- Loan_Credit_Status_Code -->
						    	<select name="loanStatus" id="loanStatus">
					    		</select>
						    </kl>
							<kl class="kl_second">
								<label>拖欠金额<b></b></label>
						    	<input name="loanDefaultAmount" type="text" class="newinput120 easyui-validatebox"/>（元）  
							</kl>
						</li>
						<li>
							<kl class="kl_three">
								<label>信用卡张数<b></b></label>
						    	<input name="loanCardSum" type="text" class="newinput120 easyui-validatebox"/>（张）  
							</kl>
						</li>
						<li>
							<label>备注<b></b></label><textarea name="loanRemark" class="textinput"></textarea>
						</li>
						<li>
							<label>&nbsp;</label><input type="submit" class="scbtn" value="保存"/>
						</li>
					</ul>
				</form>	
			</div>
		</div>
		
		
		
		
		<div id="tab4" class="tabson">
			<div class="formbody">
				<div class="formtitle"><span>新增/编辑社保信息</span></div>
				<form id="insureForm" name="insureForm" enctype="multipart/form-data" method="post">
					<input type="hidden" name="id" id="insureId" value="" />
					<input type="hidden" name="loanId" value="${param.loanId}" />
					<ul class="forminfo">
						<li>
							<kl class="kl_three">
								<label>参保总月数<b></b></label>
						    	<input name="insureMonthsSum" id="insureMonthsSum" type="text" class="newinput120 easyui-validatebox"/>（月）  
							</kl>
							<kl class="kl_second">
								<label>该单位参保月数<b></b></label>
						    	<input name="insureMonthsUnit" id="insureMonthsUnit" type="text" class="newinput120 easyui-validatebox"/>（月）  
							</kl>
						</li>
						<li>
							<kl class="kl_three">
								<label>参保薪资<b></b></label>
						    	<input name="insurePay" id="insurePay" type="text" class="newinput120 easyui-validatebox"/>（元）  
							</kl>
							<kl class="kl_second">
						    	<label>最近一个月参保<b></b></label>
						    	<!-- Loan_Insure_Status_Code -->
						    	<select name="insureStatus" id="insureStatus">
					    		</select>
						    </kl>
						</li>
						<li>
							<kl class="kl_three">
								<label>养老保险<b></b></label>
								<!-- Loan_Insure_Status_Code -->
						    	<select name="insureEi" id="insureEi">
					    		</select>
							</kl>
							<kl class="kl_second">
						    	<label>医疗保险<b></b></label>
						    	<!-- Loan_Insure_Mi_Status_Code -->
						    	<select name="insureMi" id="insureMi">
					    		</select>
						    </kl>
						</li>
						<li>
							<kl class="kl_three">
								<label>生育保险<b></b></label>
								<!-- Loan_Insure_Status_Code -->
						    	<select name="insureBi" id="insureBi">
					    		</select>
							</kl>
							<kl class="kl_second">
						    	<label>住房保险<b></b></label>
						    	<!-- Loan_Insure_Status_Code -->
						    	<select name="insureHi" id="insureHi">
					    		</select>
						    </kl>
						</li>
						<li>
							<kl class="kl_three">
								<label>工伤保险<b></b></label>
								<!-- Loan_Insure_Status_Code -->
						    	<select name="insureWi" id="insureWi">
					    		</select>
							</kl>
							<kl class="kl_second">
						    	<label>失业保险<b></b></label>
						    	<!-- Loan_Insure_Status_Code -->
						    	<select name="insureCi" id="insureCi">
					    		</select>
						    </kl>
						</li>
						<li>
							<kl class="kl_three">
								<label>参保公司数量<b></b></label>
						    	<input name="insureCompanySum" id="insureCompanySum" type="text" class="newinput120 easyui-validatebox"/> 
							</kl>
							<kl class="kl_second">
								<label>参保总人数<b></b></label>
						    	<input name="insurePersonSum" id="insurePersonSum" type="text" class="newinput120 easyui-validatebox"/>（人）  
							</kl>
						</li>
						<li>
							<label>其他<b></b></label><textarea name="insureOther" class="textinput"></textarea>
						</li>
						<li><label>&nbsp;</label><input type="submit" class="scbtn" value="保存"/></li>
					</ul>
				</form>
			</div>
		</div>
		
		
		
		<div id="tab5" class="tabson">
			<div class="formbody">
				<div class="formtitle"><span>电话调查列表</span></div>
				<table cellpadding="0" cellspacing="0" border="0" class="tablelist" id="linkTable" width="100%"></table>
				
				<!-- tab按钮 -->
				<div class="tools">
					<div class="xline"></div>
						<ul class="toolbar">
							<li class="click _class_btn_add" onclick="cleanForm();"><span></span><img src="<%=basePath %>static_resources/images/t01.png" />添加电话调查</li>
						</ul>
					<div class="xline1"></div>
				</div>
				
				<div class="formtitle"><span>新增/编辑电话调查</span></div>
	
				<form id="linkForm" name="linkForm" enctype="multipart/form-data" method="post">
					<input type="hidden" name="id" id="linkId" value="" />
					<input type="hidden" name="loanId" value="${param.loanId}" />
					<ul class="forminfo">
						<li>
							<kl class="kl_three">
								<label>联系人<b>*</b></label>
						    	<input name="linkName" type="text" class="newinput190 easyui-validatebox"/> 
							</kl>
							<kl class="kl_second">
								<label>关系<b></b></label>
								<!-- Loan_Link_Relation_Type_Code -->
								<select name="linkRelation" id="linkRelation">
								</select>
							</kl>
						</li>
						<li>
							<kl class="kl_three">
								<label>来源<b></b></label>
								<!-- Loan_Link_Source_Code -->
						    	<select name="linkSource" id="linkSource">
								</select>
							</kl>
							<kl class="kl_second">
								<label>电话号码<b>*</b></label>
								<input name="linkTel" type="text" class="newinput190 easyui-validatebox"/>
							</kl>
						</li>
						<li>
							<kl class="kl_three">
								<label>拨打时间<b></b></label>
						    	<input name="linkTime" type="text" class="Wdate newinput190" onClick="WdatePicker()" /> 
							</kl>
							<kl class="kl_second">
								<label>通话情况<b></b></label>
								<!-- Loan_Link_Call_Status_Code -->
								<select name="linkCallStatus" id="linkCallStatus">
								</select>
							</kl>
						</li>
						<li>
							<label>通话备注<b></b></label><textarea name="linkCallRemark" class="textinput"></textarea>
						</li>
						<li><label>&nbsp;</label><input type="submit" class="scbtn" value="保存"/></li>
					</ul>
				</form>
			</div>
		</div>
		
		
		<div id="tab6" class="tabson">
			<div class="formbody">
		    	<div class="formtitle"><span>转考察申请</span></div>
		    	<div class="toolsli">
					<form id="_inspect_detail" name="_inspect_detail" enctype="multipart/form-data" method="post">
					<input type="hidden" name="id" id="inspectId" value="" />
					 <input type="hidden" name="loanId" id="loanId" value="${param.loanId}" />
		    			<ul class="forminfo">
		   					<li>
		   						<kl class="kl_three">
									<label>考察人员<b>*</b></label>
									<input id="inspectUserId" name="inspectUserId" type="hidden" data-options="required:true"  class="newinput190 easyui-validatebox"/>
									<input name="inspectUserName" type="text"  class="newinput190 easyui-validatebox"/>&nbsp;&nbsp;  
								</kl>
		   						<kl class="kl_second">
									<label>考察费用<b></b></label>
									<input name="inspectFee" type="text" class="newinput120 easyui-validatebox"/>（元）  
								</kl>
		   					</li>
		   					<li>
								<label>待考察事项<b></b></label><textarea name="inspectItem" class="textinput easyui-validatebox" data-options="validType:['unnormal','length[1,600]']"></textarea>
							</li>
		   					
					    	<li><label>&nbsp;</label><input name="save_button" type="submit" class="scbtn" value="转考察"/>&nbsp;&nbsp;&nbsp;&nbsp;<input name="return_button" onclick="history.go(-1);" type="button" class="scbtn" value="返回"/></li>
		  	 			</ul>
		   			</form>
			    </div>
			    
		    </div>
		    <!-- <div class="formbody">
			    <div class="formtitle"><span>考察报告附件列表</span></div>
			   	<table class="tablelist">
			    	<thead>
				    	<tr>
					        <th>主题</th>accessoryTheme
					        <th>上传人</th>addUserName
					        <th>上传时间</th>addTime
					        <th>文件名</th>accessoryOldName
					        <th>附件类型</th>accessoryType
					        <th>附件备注</th>accessoryRemark
					        <th>操作</th>
				        </tr>
			        </thead>
			        <tbody>
				        <tr>
					        <td>杨海</td>
					        <td>杨浩</td>
					        <td>2015-04-16 20:56:55</td>
					        <td>201414110.rar</td>
					        <td>rar</td>
					        <td>哈哈哈哈哈哈</td>
				        	<td><a href="#" class="tablelink">下载</a></td>
				        </tr>
				        <tr>
					        <td>杨海</td>
					        <td>杨浩</td>
					        <td>2015-04-16 20:56:55</td>
					        <td>201414110.rar</td>
					        <td>rar</td>
					        <td>哈哈哈哈哈哈</td>
				        	<td><a href="#" class="tablelink">下载</a></td>
				        </tr>   
			        </tbody>
			    </table>

		    	<div class="formtitle"><span>考察信息详情</span></div>
				<form id="" name="" enctype="multipart/form-data" method="post">
	   				<ul class="forminfo">
	   					<li>
				    		<label>考察人员：</label><label1><span name="inspectUserName"></span>&nbsp;</label1>
				    		<label>考察费用：</label><label1><span name="inspectFee"></span>&nbsp;元</label1>
				    	</li>
				    	<li>
				    		<label>待考察事项：</label><label2><span name="inspectItem"></span>&nbsp;</label2>
				    	</li>
				    	<li>
				    		<label>考察记录：</label><label2><span name="inspectRecord"></span>&nbsp;</label2>
				    	</li>
	  					<li>
			    			<label>&nbsp;</label><input name="return_button" type="button" class="scbtn" value="返回"/>
			    		</li>
	 	 			</ul>
	  			</form>
			</div> -->
		</div>
		
		
		
		<div id="tab7" class="tabson">
			<div class="formbody">
				<div class="formtitle">
					<span>附件信息列表</span>
				</div>
				<div class="toolsli">
					<table cellpadding="0" cellspacing="0" border="0" class="tablelist" id="inspectTable" width="100%"></table>
				</div>
				<div class="formtitle">
					<span>附件上传</span>
				</div>
				<div class="toolsli">
					<form id="inspectForm" name="inspectForm"
						enctype="multipart/form-data" method="post">
						<input type="hidden" name="clientId" id=" client_id" value="${param.clientId}" />
						<input type="hidden" name="loanId" id=" loan_id" value="${param.loanId }" />
						<input type="hidden" name="ownerType" value="SH"/>
						<ul class="forminfo">
							<li>
								<kl class="kl_three">
						     		<label>主题<b>*</b></label>
						  			<input name="accessoryTheme"  id="accessoryTheme" type="text" class="newinput190 easyui-validatebox"
										data-options="required:true,validType:['unnormal','chinese','length[1,20]']"/>
								</kl>
								<kl class="kl_second">
									<label>附件类别<b>*</b></label>
					     			<select name="accessoryClass" id="accessoryClass"></select>
								</kl>
						   	</li>
							<li>
	     						<label>附件<b>*</b></label>
	  							<input name="uploadFiles" id="uploadFiles"  type="file" class="scfile">
	   						</li>
								

							<li><label>备注<b></b></label> <textarea rows="" cols=""
									class="textinput easyui-validatebox" id="accessoryRemark"
									name="accessoryRemark"></textarea></li>
							<li><label>&nbsp;</label><input 
								type="submit" class="scbtn" value="保存" /></li>
						</ul>
					</form>
				</div>
				

			</div>
		</div>
		
		<div id="tab8" class="tabson">
			<div class="formbody">
				<div class="formtitle"><span>提交审核</span></div>
				<form id="sugForm" name="sugForm" enctype="multipart/form-data" method="post">
					<input type="hidden" name="id" id="sugId" value="" />
					<input type="hidden" name="loanId" value="${param.loanId}" />
					<input type="hidden" name="sugUserId" value="${user.id}" />
					<ul class="forminfo">
						<li>
							<kl class="kl_three">
								<label>建议额度<b>*</b></label>
								<input name="sugLimit" id="sugLimit" type="text" class="newinput120" data-options="required:true" />（元）
							</kl>
							<kl class="kl_second">
								<label>建议期限<b>*</b></label>
								<input name="sugDeadline" type="text" class="newinput120 easyui-validatebox" data-options="required:true" />（月）
							</kl>
						</li>
						<li>
							<kl class="kl_three">
								<label>建议月利率<b>*</b></label>
								<input name="sugRate" type="text" class="newinput120" data-options="required:true" />（%） 
							</kl>
							<kl class="kl_second">
								<label>建议管理费率<b>*</b></label>
								<input name="sugRateManage" type="text" class="newinput120 easyui-validatebox" data-options="required:true" />（%） 
							</kl>
						</li>
						<li>
							<kl class="kl_three">
								<label>建议手续费率<b>*</b></label>
								<input name="sugRateHandling" type="text" class="newinput120" data-options="required:true" />（%） 
							</kl>
						</li>
						<li>
							<label>建议备注<b></b></label><textarea name="sugRemark" class="textinput"></textarea>
						</li>
						<li>
							<label>&nbsp;</label>
							<input type="submit" class="scbtn" value="提交审核"/>&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="button" class="scbtn" value="退回申请" onclick="returnLoan();"/>&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="button" class="scbtn" value="返回" onclick="history.go(-1);" />
						</li>
					</ul>
				</form>
			</div>
		</div>
	</div>
</body>
</html>
